package com.trkj.dao.cf;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojo.OrganizationArea;
import com.trkj.pojo.OrganizationStructure;

public interface OrganizationAreaDAO extends CrudRepository<OrganizationArea, Long> {
	@Query("from OrganizationArea u where u.orgareaName like ?1")
	public List<OrganizationArea> queryByOrgareaName(String orgareaName);
	@Query("from OrganizationArea u")
	public List<OrganizationArea> queryByPage(Pageable p);
}
